import request from '@/utils/request'

// 查询员工功能列表
export function listEmployees(query) {
  return request({
    url: '/oa/employees/list',
    method: 'get',
    params: query
  })
}

// 查询员工功能详细
export function getEmployees(oaEmployeeId) {
  return request({
    url: '/oa/employees/' + oaEmployeeId,
    method: 'get'
  })
}

// 新增员工功能
export function addEmployees(data) {
  return request({
    url: '/oa/employees',
    method: 'post',
    data: data
  })
}

// 修改员工功能
export function updateEmployees(data) {
  return request({
    url: '/oa/employees',
    method: 'put',
    data: data
  })
}

// 删除员工功能
export function delEmployees(oaEmployeeId) {
  return request({
    url: '/oa/employees/' + oaEmployeeId,
    method: 'delete'
  })
}
